﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Futaba.SBus.Telemetry.Configuration
{
	/// <summary>
	/// Exception raised when configuration-information is semantically incorrect
	/// </summary>
	public class ConfigurationException : Exception
	{

		/// <summary>
		/// Creates an instance with an error-message
		/// </summary>
		/// <param name="msg">the message</param>
		/// <param name="args">parameters supplied to the <paramref name="msg">message</paramref></param>
		public ConfigurationException(string msg, params object[] args)
			: base(string.Format(msg, args ?? new object[0]))
		{
		}

	}
}
